package com.yzp;


import com.yzp.config.DBConfig1;
import com.yzp.config.DBConfig2;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import tk.mybatis.spring.annotation.MapperScan;

/**
 * @title: AppMultiDataSource
 * @Author: yzp
 * @Date: 2019/9/15 15:14
 * @Version 1.0
 */
@SpringBootApplication
@MapperScan(basePackages = "com.yzp.dao")
@EnableConfigurationProperties(value = {DBConfig1.class,DBConfig2.class})
public class AppMultiDataSource {
    public static void main(String[] args) {
        SpringApplication.run(AppMultiDataSource.class);
    }
}
